From 6319db734ccac13ab37d863a612190aa589be75f Mon Sep 17 00:00:00 2001
From: Daniel Carl <danielcarl@gmx.de>
Date: Sat, 9 Nov 2013 01:27:52 +0100
Subject: [PATCH] Don't handle home page opening twice.

We set the homepage to open if not uri was given when vimb was called. But the
vb_load_uri() function did also a check if a uri was given. Now only
vb_load_uri handles the opening of home page.
---
 src/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.c b/src/main.c
index b56ee72..54022ab 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1003,7 +1003,7 @@ int main(int argc, char *argv[])
     init_core();
 
     /* command line argument: URL */
-    vb_load_uri(&(Arg){VB_TARGET_CURRENT, argc > 1 ? argv[argc - 1] : vb.config.home_page});
+    vb_load_uri(&(Arg){VB_TARGET_CURRENT, argc > 1 ? argv[argc - 1] : NULL});
 
     /* Run the main GTK+ event loop */
     gtk_main();
-- 
2.20.1